#pragma once

#include "AccessNet.h"
#include "afxcmn.h"
// CMainDialog dialog

class CMainDialog : public CDialog
{
	DECLARE_DYNAMIC(CMainDialog)

public:
	CMainDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~CMainDialog();

// Dialog Data
	enum { IDD = IDD_MAINDIALOG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnBnClickedBtnUp();
	afx_msg void OnBnClickedBtnDown();
	afx_msg void OnBnClickedBtnIcmp();
	CString m_ShowMsg;
	TFtp m_Ser;
	afx_msg void OnBnClickedBtnSpeedTest();

	static DWORD WINAPI OnSpeedTestProc(PVOID pvoid);
	static DWORD WINAPI OnQualityTestProc(PVOID pvoid);
	afx_msg LRESULT OnShowMsg(WPARAM wparam, LPARAM lparam);
	afx_msg LRESULT OnEnableWin(WPARAM wparam, LPARAM lparam);
	CString m_Static_Msg;
	CProgressCtrl m_Progress;
	CString m_Local_Ip;
	CString m_Agent;
	static DWORD WINAPI OnLocalIpProc(PVOID pvoid);
	afx_msg LRESULT OnShowProcess(WPARAM wparam, LPARAM lparam);
	TResult atmpResult;
};

struct SPARAM
{
	CMainDialog* pThis;
};
